package com.hxgz.steel.dao;

import com.hxgz.steel.domain.Integral;
import io.swagger.models.auth.In;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;

@Component("IntegralMapper")
public interface IntegralMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Integral record);

    int insertSelective(Integral record);

    Integral selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(Integral record);

    int updateByPrimaryKey(Integral record);

    List<Integral> getIntegralList(@Param("userId") Long userId,@Param("type") Integer type);

    int cleanIntegral(Long userId);
}